import request from '@/utils/request'

// 查询采购申请列表
export function listRequestDetails(query) {
  return request({
    url: '/pms/requestDetails/list',
    method: 'get',
    params: query
  })
}

// 查询采购申请详细
export function getRequestDetails(requestDetailUuid) {
  return request({
    url: '/pms/requestDetails/' + requestDetailUuid,
    method: 'get'
  })
}


export function listRequestDetail(query) {
  return request({
    url: '/pms/requestDetails/listDetail',
    method: 'get',
    params: query
  })
}

// 新增采购申请
export function addRequestDetails(data) {
  return request({
    url: '/pms/requestDetails',
    method: 'post',
    data: data
  })
}

// 修改采购申请
export function updateRequestDetails(data) {
  return request({
    url: '/pms/requestDetails',
    method: 'put',
    data: data
  })
}

// 删除采购申请
export function delRequestDetails(requestDetailUuid) {
  return request({
    url: '/pms/requestDetails/' + requestDetailUuid,
    method: 'delete'
  })
}
